package com.codedef.fservice;

import com.codedef.entity.Seat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 孙宏宇
 * @date 2021/2/24 10:10
 */
@FeignClient(value = "seatlist")
public interface SeatService {

    @GetMapping("/seat/f/seat/{id}")
    Seat getSeatByIdFeign(@PathVariable("id") Integer id);

    /**
     * 查询一个座位所属的教室Abbreviation Feign接口
     */
    @GetMapping("/seat/f/classroomAbbr/{seatId}")
    public String getClassroomAbbreviationBySeatIdFeign(@PathVariable("seatId") Integer seatId);

}
